<!--
 * @Author: hq
 * @Date: 2022-05-23 16:54:57
 * @LastEditors: hq
 * @LastEditTime: 2022-05-23 17:07:32
 * @Description: your project
 * @version: 1.0
-->
<template>
  <div>
    <div class="rowData">
      <div class="col1">备份目录</div>
      <div class="col2">
        <el-input v-model="yuming" placeholder="请填写网站域名"></el-input>
      </div>
      <div class="col3">
        数据库备份路径,路径必须以 / 结尾
        <div>调用方式<span>config('databases.backup_path')</span></div>
      </div>
    </div>
    <div class="rowData">
      <div class="col1">备份分卷大小</div>
      <div class="col2">
        <el-input v-model="yuming" placeholder="请填写备份分卷大小"></el-input>
      </div>
      <div class="col3">
        用于限制压缩后的分卷最大长度。单位：B；建议设置20M
        <div>调用方式<span>config('databases.part_size')</span></div>
      </div>
    </div>
    <div class="rowData">
      <div class="col1">备份压缩开关</div>
      <div class="col2">
        <el-switch
          class="tablescope"
          v-model="switchValue"
          :active-color="$color - primary1"
          inactive-color=""
          active-text="启用"
          inactive-text="禁用"
        >
        </el-switch>
      </div>
      <div class="col3">
        压缩备份文件需要PHP环境支持gzopen,gzwrite函数
        <div>调用方式<span>config('databases.compress')</span></div>
      </div>
    </div>
    <div class="rowData">
      <div class="col1">备份压缩级别</div>
      <div class="col2">
        <el-radio-group v-model="radio">
          <el-radio label="1">低</el-radio>
          <el-radio label="2">中</el-radio>
          <el-radio label="3">高</el-radio>
        </el-radio-group>
      </div>
      <div class="col3">
        数据库备份文件的压缩级别，该配置在开启压缩时生效
        <div>调用方式<span>config('databases.compress_level')</span></div>
      </div>
    </div>
    <div class="rowData">
      <div class="col1"></div>
      <div class="col2">
        <el-button type="primary">提交</el-button>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      radio: "1",
    };
  },
};
</script>

<style lang="scss" scoped>
@import "@/style/index.scss";
.rowData {
  display: flex;
  align-items: center;
  padding-top: 20px;
  box-sizing: border-box;
  .col1 {
    width: 10%;
    text-align: end;
    font-size: 14px;
  }
  .col2 {
    width: 20%;
    padding: 0 20px;
    box-sizing: border-box;
    /deep/.avatar-uploader .el-upload {
      border: 1px dashed #d9d9d9;
      border-radius: 6px;
      cursor: pointer;
      position: relative;
      overflow: hidden;
    }
    .avatar-uploader .el-upload:hover {
      border-color: #409eff;
    }
    .avatar-uploader-icon {
      font-size: 28px;
      color: #8c939d;
      width: 80px;
      height: 80px;
      line-height: 80px;
      text-align: center;
    }
    .avatar {
      width: 80px;
      height: 80px;
      display: block;
    }
  }
  .col3 {
    font-size: 12px;
    color: #666666;
    span {
      color: $color-primary1;
    }
  }
}
</style>
